import request from '@/utils/request'

// 查询库存锁定单列表
export function listStockLock(query) {
  return request({
    url: '/stock/stockLock/list',
    method: 'post',
    data: query
  })
}

// 查询库存锁定单详细
export function getStockLock(id) {
  return request({
    url: '/stock/stockLock/' + id,
    method: 'get'
  })
}

// 新增库存锁定单
export function addStockLock(data) {
  return request({
    url: '/stock/stockLock/add',
    method: 'post',
    data: data
  })
}

// 修改库存锁定单
export function updateStockLock(data) {
  return request({
    url: '/stock/stockLock/update',
    method: 'post',
    data: data
  })
}

// 删除库存锁定单
export function delStockLock(id) {
  return request({
    url: '/stock/stockLock/delete/' + id,
    method: 'post'
  })
}

export function stockLockAuditCancel(id){
  return request({
    url: '/stock/stockLock/auditCancel/' + id,
    method: 'post'
  })
}

export function stockLockAudit(id){
  return request({
    url: '/stock/stockLock/audit/' + id,
    method: 'post'
  })
}

export function stockLockRelease(id){
  return request({
    url: '/stock/stockLock/releaseLock/' + id,
    method: 'post'
  })
}

